#include<memory>
#include<iostream>
#include"protocol.hpp"
#include"tcp_client.hpp"

int main(int argc, char* argv[])
{
    if(argc!=3)
    {
        std::cout<<"Usage: "<<argv[0]<<" server_ip server_port"<<std::endl;
    }
    std::string server_ip = argv[1];
    uint16_t server_port = std::stoi(argv[2]);
    std::unique_ptr<TcpClient> tc = std::make_unique<TcpClient>(server_ip, server_port);
    tc->AskCal();
}